import React, {Component} from 'react';
import FnComponent from "../fn_component/FnComponent";
import SliBar from "@/components/SliBar";
import Link from 'next/link';
// import SliBar from "@component/SliBar";

interface PropInterface {
  name: string
}

interface StateInterface {
  name: string
}

class User extends Component<PropInterface, StateInterface> {
  state = {
    name: 'hahaha'
  };

  render() {
    const {name} = this.state;
    return (
      <div>
        {/*<a href="/me">跳转</a>*/}
        <Link href={'/me'}>跳转</Link>
        <SliBar username={'我是你爸爸'}/>
        {name}
        <FnComponent db={true} password={'123'}>
          <h1>哈哈哈哈</h1>
        </FnComponent>
      </div>
    );
  }
}

export default User;
